package com.qf.anno.dao;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//@Component
@Repository
public class UserDaoImpl  implements UserDao{
    @Override
    public int insert(String name, Integer age) {
        System.out.println("user dao insert ~~");
        return 1;
    }

    @Override
    public int delete(Integer id) {
        System.out.println("user dao delete ~~");
        return 10;
    }

    @Override
    public void findAll() {
        System.out.println("user dao findAll ~~");
        int i = 1/0;
    }

    @Override
    public void findById(Integer id) {
        System.out.println("user dao findById ~~,id="+id);
    }
}
